﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Xml.Linq;

namespace GNSCore.Settings
{
    /// <summary>
    /// Stores settings for verification
    /// </summary>
    public class VerificationSettings
    {
        private static XDocument _doc = XDocument.Load("Settings/GnsSettings.xml");

        /// <summary>
        /// Specefies time period to verify alerts for users in milly seconds
        /// </summary>
        public static int TimePeriod
        {
            get
            {
                return
                    Convert.ToInt32(
                        _doc.Descendants("settings").Elements("verification").FirstOrDefault().Element(
                            "timeperiod").Attribute("value").Value);
            }
        }
    }
}
